package com.redoor.app.stake.basicdata.service;

import com.redoor.app.stake.basicdata.model.BaseProp;
import com.redoor.app.stake.basicdata.model.controllerModel.BasePropCriteria;
import com.redoornetwork.framework.mybatis.service.Service;

import java.util.List;
import java.util.Map;

/**
 * Created by wangjunlei on 2018-03-10 17:05:59.
 */
public interface BasePropService extends Service<BaseProp, String> {

    /**
     * 初始化对象到redis缓存
     * @param isDistraint
     */
    void initPropToRedis(boolean isDistraint);

    /**
     *
     * @param criteria
     * @return
     */
    BaseProp getProp(BasePropCriteria criteria);

    /**
     * 根据名称查找对应的value值
     * @param name
     * @return
     */
    String getProp(String name);

    /**
     * 获取注册码序列
     * @return
     */
    double getRegisterIndex();
    /**  
     *  程序是否本地运行
     *      读取的base_prop数据表中isLocal字段
     *
     * @author ZhangMumu  
     * @date 2018/4/14 0014 16:39  
     * @param   
     * @return boolean
     */  
    boolean isLocal();

    /**
     * 程序是否可以开启mq功能
     * @return
     */
    boolean initMQFlag();
}
